/**
 *   类说明
 * 	@company         杭州黔灵科技有限公司  
 *   @creator             chenhe
 *   @create-time     2012-11-28   上午11:16:44   
 *   
 */
package com.zgcs.sequence.net.in;

public class IdiomGamePackage extends InPackage {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4601793166858023828L;

	int roomID;
	int currentUserID;
	int nextUserID;
	String nextUserNickname;
	String nextUserIcon;
	int result;
	String answerKey;
	int gameNum;
	int gameOutNum;
	int gameWaittingNum;
	int msg;

	public IdiomGamePackage(String result) {
		super(result);
	}

	@Override
	public void parserSelf() {

		roomID = Integer.parseInt(resultSpl[2]);
		currentUserID = Integer.parseInt(resultSpl[3]);
		result = Integer.parseInt(resultSpl[4]);
		nextUserID = Integer.parseInt(resultSpl[5]);
		nextUserNickname = resultSpl[6];
		nextUserIcon = resultSpl[7];
		answerKey = resultSpl[8];
		gameNum = Integer.parseInt(resultSpl[9]);
		gameOutNum = Integer.parseInt(resultSpl[10]);
		gameWaittingNum = Integer.parseInt(resultSpl[11]);
		msg = Integer.parseInt(resultSpl[12]);

	}

	public int getRoomID() {
		return roomID;
	}

	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}

	public int getCurrentUserID() {
		return currentUserID;
	}

	public void setCurrentUserID(int currentUserID) {
		this.currentUserID = currentUserID;
	}

	public int getNextUserID() {
		return nextUserID;
	}

	public void setNextUserID(int nextUserID) {
		this.nextUserID = nextUserID;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getAnswerKey() {
		return answerKey;
	}

	public void setAnswerKey(String answerKey) {
		this.answerKey = answerKey;
	}

	public int getGameNum() {
		return gameNum;
	}

	public void setGameNum(int gameNum) {
		this.gameNum = gameNum;
	}

	public int getGameOutNum() {
		return gameOutNum;
	}

	public void setGameOutNum(int gameOutNum) {
		this.gameOutNum = gameOutNum;
	}

	public int getGameWaittingNum() {
		return gameWaittingNum;
	}

	public void setGameWaittingNum(int gameWaittingNum) {
		this.gameWaittingNum = gameWaittingNum;
	}

	public int getMsg() {
		return msg;
	}

	public void setMsg(int msg) {
		this.msg = msg;
	}

	public String getNextUserNickname() {
		return nextUserNickname;
	}

	public void setNextUserNickname(String nextUserNickname) {
		this.nextUserNickname = nextUserNickname;
	}

	public String getNextUserIcon() {
		return nextUserIcon;
	}

	public void setNextUserIcon(String nextUserIcon) {
		this.nextUserIcon = nextUserIcon;
	}

}
